Add pointer to ‹details› element ‹summary›#1042
Merged
stephaniehobson merged 2 commits intomozilla:mainfrom Mar 19, 2025
Merged
Add pointer to ‹details› element ‹summary›#1042stephaniehobson merged 2 commits intomozilla:mainfrom
stephaniehobson merged 2 commits intomozilla:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Details element gets styled very close to Details component with many of the enhancements, just the hover affordance is missing for this plan HTML5 use case. This sets the cursor to pointer, as the full component does.
I have documented this change in the design system.CHANGELOG.md.Issue
Resolves #948
Testing
https://patch-2--mzp-dev.netlify.app/components/detail/details
@supports not (-ms-ime-align: auto)of sorts for things like IE that don't provide the functionality as that adds extra cruft (and false positives) for not much benefit, when MzpDetails actually provides a polyfill for such browsers.@summarymixin (which gets included within half a dozen of things) not to apply such styling to places that render it own ways.